Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid query string for array params #1908

Merged
merged 3 commits into from
Aug 12, 2024

Conversation

akadusei
Copy link
Contributor

Purpose

Fixes #1880
Duplicate of #1907

Description

In #1907, I assumed the square brackets ([]) in array query params should not be encoded. I believe it should, and this PR addresses that. If accepted, #1907 should be rejected.

Checklist

  • - An issue already exists detailing the issue/or feature request that this PR fixes
  • - All specs are formatted with crystal tool format spec src
  • - Inline documentation has been added and/or updated
  • - Lucky builds on docker with ./script/setup
  • - All builds and specs pass on docker with ./script/test

@jwoertink
Copy link
Member

Yeah, this makes sense for them to be encoded. The answer on this stackoverflow says that square brackets can appear in the host, but should be percent encoded in the query string.

Looks like there's some weird failures going on. I don't think they're related to this PR. At least for sure not the exception page, but can you look at the cookie stuff? If it's unrelated, then we can fix that separately.

Thanks for taking this on!

@jwoertink jwoertink mentioned this pull request Aug 12, 2024
5 tasks
@jwoertink jwoertink merged commit dd21f8b into luckyframework:main Aug 12, 2024
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Building a route with array params doesn't work
2 participants